let  leaveTable = require("./leaveTable");


module.exports = {
      add:(data)=>{ //data就是请假的信息
            return  leaveTable.insertMany([data]);
      },
      query:(params)=>{
          return  leaveTable.find(params);
      }
}